import request from '@/utils/request'

// 查询龙头库列表
export function listLt(query) {
  return request({
    url: '/stock/lt/list',
    method: 'get',
    params: query
  })
}

// 查询龙头库详细
export function getLt(recordId) {
  return request({
    url: '/stock/lt/' + recordId,
    method: 'get'
  })
}

// 新增龙头库
export function addLt(data) {
  return request({
    url: '/stock/lt',
    method: 'post',
    data: data
  })
}

// 修改龙头库
export function updateLt(data) {
  return request({
    url: '/stock/lt',
    method: 'put',
    data: data
  })
}

// 删除龙头库
export function delLt(recordId) {
  return request({
    url: '/stock/lt/' + recordId,
    method: 'delete'
  })
}
